package me.jiatao.taobaotools.utils;

import android.webkit.JavascriptInterface;

import me.jiatao.taobaotools.activity.BaseActivity;
import me.jiatao.taobaotools.view.X5WebView;

/**
 * Created by JiaTao on 2018/7/16.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class InJavaScriptLocalObj {
    private BaseActivity activity;
    private X5WebView webView;

    public InJavaScriptLocalObj(BaseActivity evaluateActivity, X5WebView evaluateWevView) {
        this.activity = evaluateActivity;
        this.webView = evaluateWevView;
    }

    @JavascriptInterface
    public void getSource(final String html) {

        activity.setWebViewHtml(html);
    }

}
